import request from '@/utils/request'

// 查询成品正式排产计划列表
export function listProductFormalSchedulingPlan(query) {
  return request({
    url: '/sales/productFormalSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询成品正式排产计划详细
export function getProductFormalSchedulingPlan(id) {
  return request({
    url: '/sales/productFormalSchedulingPlan/' + id,
    method: 'get'
  })
}

// 新增成品正式排产计划
export function addProductFormalSchedulingPlan(data) {
  return request({
    url: '/sales/productFormalSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改成品正式排产计划
export function updateProductFormalSchedulingPlan(data) {
  return request({
    url: '/sales/productFormalSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除成品正式排产计划
export function delProductFormalSchedulingPlan(id) {
  return request({
    url: '/sales/productFormalSchedulingPlan/' + id,
    method: 'delete'
  })
}
